using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace M13.Base
{
    /// <summary>
    /// �������������
    /// </summary>
    /// <typeparam name="x"></typeparam>
    public class Singleton<x> where x : new()
    {
        private static x _instance;

        public static x GetInstance()
        {
            if (_instance == null)
            {
                _instance = new x();
            }
            return _instance;
        }
    }
}